package com.hqyj.springBoot.modules.test.service;

import com.hqyj.springBoot.modules.common.vo.Result;
import com.hqyj.springBoot.modules.common.vo.Search;
import com.hqyj.springBoot.modules.test.entity.Student;
import org.springframework.data.domain.Page;

/**
 * StudentService
 */
public interface StudentService {

    Result<Student> insertStudent(Student student);

    Result<Student> updateStudent(Student student);

    Result<Object> deleteStudentById(int id);

    Student getStudentById(int id);

    Page<Student> getStudentBySearch(Search search);

    Student findFirstByName(String name);

}
